package com.ztgf.file.models.service;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.common.constant.Result;
import com.ztgf.file.models.bo.FileUserSaveBO;
import com.ztgf.file.models.dto.FileUserDTO;
import com.ztgf.file.models.vo.FileUserVO;

/**
 * 文件用户表服务
 *
 * @author mxli
 * @Date 2020-10-15 14:32:14
 */
public interface IFileUserService extends IService<FileUserDTO> {
    boolean add(FileUserSaveBO saveBO);

    FileUserDTO getUserBySession(String sessionId);
    FileUserDTO getUserBySession(Long userId);

    void setUserSession(String sessionId, FileUserDTO dto);
    void delUserSession(String sessionId);
    void delUserSessionById(Long id);
    boolean setResetUserSession(String sessionId);
    Result updateUserPassword(String oldPassword, String newPassword, String name);

    Page<FileUserVO> queryPageVOList(Page<FileUserVO> page, Wrapper<FileUserVO> wrapper,Integer type);

    FileUserVO getUserVO(Long userId);
}
